package com.zg.api.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zg.api.domain.req.ApiServicePageReq;
import com.zg.api.domain.vo.ApiServiceVo;
import com.zg.common.core.dao.apis.entity.ApiService;
import com.zg.common.core.service.IPageBaseService;

import java.util.List;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/6/16 20:10
 */

public interface ApiServiceService extends IPageBaseService<ApiService> {

    /**
     * 根据code取项目
     * @param code
     * @return
     */
    ApiService getByCode(String code);

    Page<ApiServiceVo> pageService(ApiServicePageReq req, Class<ApiServiceVo> voClass);

    /**
     * 根据name取项目
     * @param name
     * @return
     */
    List<ApiService> listByName(String name);
}
